<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="moduleView" />
	<script type="text/javascript">
	$(function() {
		$("#toSap").removeAttr("disabled");
	});
</script>
<style type="text/css">
h4{ border-bottom:1px dotted #ccc; padding-bottom:10px; margin:30px 0 15px; color:#b12028; font-size: 12px;}
</style>
</head>
<body>

	<div class="Report_f">
	        <div class="Report_f_1">
	             <div class="Report_f_title_1">品牌准入信息</div>
	             <div class="o-l-search-builder f_1">
			    	  <button type="button" class="btn btn-danger btn_5 btn_right" onclick="history.go(-1)">返&nbsp;回</button>
        			  <button type="button" class="btn btn-info btn_5 btn_right" id="toSap" onclick="sendSingle('${contextPath}/biz/brand/brandcate/${brandCate.id}/sap?navId=${navId }','toSap')">发送SAP</button>
        			  <button type="button" class="btn btn-danger btn_5 btn_right" onclick="window.open('${contextPath}/biz/brand/brandcate/${brandCate.id}/delete?navId=${navId }','_self')">删&nbsp;除</button>
        			  <button type="button" class="btn btn-info btn_5 btn_right" onclick="window.open('${contextPath}/biz/brand/brandcate/${brandCate.id}/edit?navId=${navId }','_self')">修&nbsp;改</button>
        		</div> 
                    <ul class="nav nav-tabs Report_f_title_2">
					  <li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
					  <li><a href="#reg_tab"  data-toggle="tab" >商标信息</a></li> 
					  <li><a href="#compete_tab"  data-toggle="tab" >竞争品牌</a></li> 
					  <li><a href="#cust_tab"  data-toggle="tab"  >市场定位</a></li> 
					  <li><a href="#mktshares_tab"  data-toggle="tab"  >市场占有率</a></li> 
					  <li><a href="#demand_tab"  data-toggle="tab"  >合作需求</a></li> 
					  <li><a href="#otherdemand_tab"  data-toggle="tab"  >其它需求</a></li> 
					  <li><a href="#att_tab"  data-toggle="tab">附件</a></li> 
					   <li><a href="#workflow" data-toggle="tab">流程审批</a></li> 
			 			 <li><a href="#diagram" data-toggle="tab">流程图</a></li>
					</ul>
	             <div class="tab-content Report_f_title_3">
	                  <div class="Report_f_title_5">
	                       <div class="tab-content Report_f_title_3">
	                            <div class="tab-pane active" id="home">
	                                 <div class="Report_f_title_4">
	                                 <tags:message content="${msg}"/>
								 	  <div class="f_2">
											<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">招商分类:</label>
												<div class="col-sm-8 f_6">
												${brandCate.cateName }
												</div>
											</div>
											<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">品牌编号:</label>
													<div class="col-sm-8 f_6">
														${brandCate.brandNo}
													</div>
											</div>
									</div>
									<div class="f_3">
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">品牌中文名:</label>
											<div class="col-sm-8 f_6">
												${brandCate.brand.brandCname}
										</div>
										</div>
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">品牌英文名:</label>
											<div class="col-sm-8 f_6">
												${brandCate.brand.brandEname}
											</div>
										</div>
									</div>
									<div class="f_2">
											<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">品牌类型:</label>
												<div class="col-sm-8 f_6">
												<ossp:value dictType="BRAND_TYPE" key="${brandCate.brandType}"/>
												</div>
											</div>
											<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">品牌等级:</label>
													<div class="col-sm-8 f_6">
														${brandCate.brandLevel.levelName}
													</div>
											</div>
									</div>
									<div class="f_3">
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">品牌状态:</label>
											<div class="col-sm-8 f_6">
												<ossp:value dictType="brandStatus" key="${brandCate.status}"/>
										</div>
										</div>
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">品牌归属地:</label>
											<div class="col-sm-8 f_6">
												${brandCate.attachArea}
											</div>
										</div>
									</div>
									<div class="f_2">
											<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">商品产地:</label>
												<div class="col-sm-8 f_6">
												${brandCate.makeArea}
												</div>
											</div>
											<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">品牌进入市场日期:</label>
													<div class="col-sm-8 f_6">
														<fmt:formatDate value="${brandCate.inMarketYear}" pattern="yyyy-MM-dd"/>
													</div>
											</div>
									</div>
									<div class="f_3">
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">所属公司名称:</label>
											<div class="col-sm-8 f_6">
												${brandCate.companyName}
											</div>
										</div>
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">所属公司联系人:</label>
											<div class="col-sm-8 f_6">
												${brandCate.companyContacts}
											</div>
										</div>
									</div>
									<div class="f_2">
											<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">是否目标引进品牌:</label>
												<div class="col-sm-8 f_6">
												<ossp:value dictType="YESORNO" key="${brandCate.isTargetBrand}"/>
												</div>
											</div>
											<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">提报人:</label>
													<div class="col-sm-8 f_6">
														${brandCate.reporter }
													</div>
											</div>
									</div>
									<div class="f_3">
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">提报人身份:</label>
											<div class="col-sm-8 f_6">
												<ossp:value dictType="brandReporterId" key="${brandCate.reporterIdentity}"/>
											</div>
										</div>
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">提报日期:</label>
											<div class="col-sm-8 f_6">
												<fmt:formatDate value="${brandCate.reportDate}" pattern="yyyy-MM-dd"/>
											</div>
										</div>
									</div>
									<div class="f_2">
										<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">品牌简介:</label>
												<div class="col-sm-5 f_7">
												<textarea rows="5" cols="90" class="form" readonly="readonly">${brandCate.brandSummary}</textarea>
												</div>
										</div>
									</div>
									<h4>品牌市场地位分析</h4>
									<div class="f_2">
										<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">优势:</label>
												<div class="col-sm-5 f_7">
												<textarea rows="5" cols="90" class="form" readonly="readonly">${brandCate.brandMarket.advantage}</textarea>
												</div>
										</div>
									</div>
									<div class="f_3">
										<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">劣势:</label>
												<div class="col-sm-5 f_7">
												<textarea rows="5" cols="90" class="form" readonly="readonly">${brandCate.brandMarket.disadvantage}</textarea>
												</div>
										</div>
									</div>
                         			 </div>
	                            </div>
	                            <div class="tab-pane" id="reg_tab">
							  	 <div class="Report_f_title_4"> 
							  		<div class="f_2">
	                                        <div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">注册人:</label>
												<div class="col-sm-8 f_6">
												${brandCate.holder}
												</div>
											</div>
											<div class="form-group col-sm-6">
												<label for="inputtext3" class="col-sm-4 control-label f_7">注册地:</label>
													<div class="col-sm-8 f_6">
														${brandCate.registerArea}
													</div>
											</div>
									</div>
									<div class="f_3">
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">商标注册证号:</label>
											<div class="col-sm-8 f_6">
												${brandCate.brandRegisterNo}
										</div>
										</div>
										<div class="form-group col-sm-6">
											<label for="inputtext3" class="col-sm-4 control-label f_7">注册证有效期:</label>
											<div class="col-sm-8 f_6">
												<fmt:formatDate value="${brandCate.registerStartDate}" pattern="yyyy-MM-dd"/>
									  		 至 <fmt:formatDate value="${brandCate.registerEndDate}" pattern="yyyy-MM-dd"/>
											</div>
										</div>
									</div>
									
									</div>
								</div>
								
								<div class="tab-pane" id="compete_tab">
						  		<div class="Report_f_title_4">
								 <table class="table table-bordered">
									<thead>
										<tr>
											<th>序号</th>
											<th>品牌名称</th>
											<th>品牌等级</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${brandCate.brandCompeteList}" var="item" varStatus="var">
											<tr>
												<td>${var.index+1}</td>
												<td>${item.brandName }</td>
												<td>${item.levelName }</td>
											</tr>
										</c:forEach>
									</tbody>
								</table>
								</div>
							</div>
						<div class="tab-pane" id="cust_tab">
					  	<div class="Report_f_title_4">
							<table class="table table-bordered">
							  <tbody>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>品牌风格:</strong></td>
							  		<td>
							  			<c:forEach items="${styleList}" var="item" varStatus="status">
												<c:forEach items="${brandCate.brandCust.styleList}" var="itemEd" varStatus="status2">
													<c:if test="${item.styleNo == itemEd}">
														${item.styleName}
													</c:if>
												</c:forEach>
										</c:forEach>
							  		</td>
							  	</tr>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>品牌知名度:</strong></td>
							  		<td><ossp:value dictType="brandPublicity" key="${brandCate.brandCust.publicity}"/></td>
							  	</tr>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>收入层:</strong></td>
							  		<td>
							  			<c:forEach items="${dictIncomeLevelList}" var="item" varStatus="status">
								  			<c:forEach items="${brandCate.brandCust.incomeLevelList}" var="itemEd" varStatus="status2">
													<c:if test="${item.key == itemEd}">
														${item.value}
													</c:if>
											</c:forEach>
										</c:forEach>
							  		</td>
							  	</tr>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>年龄层:</strong></td>
							  		<td>
							  			<c:forEach items="${dictAgeLevelList}" var="item" varStatus="status">
								  			<c:forEach items="${brandCate.brandCust.ageLevelList}" var="itemEd" varStatus="status2">
													<c:if test="${item.key == itemEd}">
														${item.value}
													</c:if>
											</c:forEach>
										</c:forEach>
							  		</td>
							  	</tr>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>客单价:</strong></td>
							  		<td>
							  			<ossp:value dictType="brandCusPrice" key="${brandCate.brandCust.cusPrice}"/>
							  		</td>
							  	</tr>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>商品价格带:</strong></td>
							  		<td>
							  			${brandCate.brandCust.priceLevel}
							  		</td>
							  	</tr>
							  </tbody>
							</table>
							</div>
						</div>
						<div class="tab-pane" id="mktshares_tab">
					  	<div class="Report_f_title_4">
							<table class="table table-bordered">
								<thead>
									<tr>
										<th>序号</th>
										<th>区域</th>
										<th>省份</th>
										<th>城市</th>
										<th>商场</th>
										<th>商场业态</th>
										<th>楼层</th>
										<th>专柜位置</th>
										<th>合作方式</th>
										<th>经营面积(实用)</th>
										<th>月均销售</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${brandCate.brandMktshares}" var="item" varStatus="var">
									<tr>
										<td>${var.index+1}</td>
										<td>${item.regionNo }</td>
										<td>${item.provinceNo }</td>
										<td>${item.cityNo }</td>
										<td>${item.companyNo }</td>
										<td>${item.marketType }</td>
										<td>${item.floor }</td>
										<td>${item.specialPosition }</td>
										<td>${item.cooperateMode }</td>
										<td>${item.operateArea }</td>
										<td>${item.sellCondition }</td>
									</tr>
									</c:forEach>
								</tbody>
							</table>
						<table class="table table-bordered">
							  <tbody>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>全国门店数总计:</strong></td>
							  		<td>${brandCate.brandAttr.shopNumber}</td>
							  	</tr>
							  	<tr>
							  		<td class="text-right" style="width: 30%"><strong>全国销售业绩总计:</strong></td>
							  		<td>${brandCate.brandAttr.salesTotal}</td>
							  	</tr>
							  </tbody>
						 </table>
						</div>
						</div>
					<div class="tab-pane" id="demand_tab">
				  	<div class="Report_f_title_4">
						<table class="table table-bordered">
						  <tbody>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>经营面积(实用):</strong></td>
						  		<td>${brandCate.brandDemand.operateArea}㎡</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>专柜位置:</strong></td>
						  		<td>${brandCate.brandDemand.specialPosition}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>商场定位:</strong></td>
						  		<td>${brandCate.brandDemand.marketLevel}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>商场业态:</strong></td>
						  		<td>${brandCate.brandDemand.marketType}</td>
						  	</tr>
						  	<tr>
						  		<td class="text-right" style="width: 30%"><strong>合作年限:</strong></td>
						  		<td>${brandCate.brandDemand.cooperationYear}年</td>
						  	</tr>
						  </tbody>
						 </table>
						 </div>
					</div>
							<div class="tab-pane" id="otherdemand_tab">
						  	<div class="Report_f_title_4">
								<table class="table table-bordered">
								  <tbody>
								  	<tr>
								  		<td class="text-right" style="width: 15%"><strong>层高要求:</strong></td>
								  		<td>${brandCate.brandDemand.storeyHigh}MM</td>
								  		<td class="text-right" style="width: 15%"><strong>供电:</strong></td>
								  		<td>${brandCate.brandDemand.supplyElectricity}KW</td>
								  		<td class="text-right" style="width: 15%"><strong>燃气:</strong></td>
								  		<td>${brandCate.brandDemand.gas}KW</td>
								  	</tr>
								  	<tr>
								  		<td class="text-right" style="width: 15%"><strong>供水管径:</strong></td>
								  		<td>DN${brandCate.brandDemand.waterSupplyPipe}</td>
								  		<td class="text-right" style="width: 15%"><strong>新风管径:</strong></td>
								  		<td>${brandCate.brandDemand.freshAirPipe}MM</td>
								  		<td class="text-right" style="width: 15%"><strong>空调:</strong></td>
								  		<td>
										 	<c:choose>
												<c:when test="${ brandCate.brandDemand.airConditgType==0}">
													中央空调${brandCate.brandDemand.airConditg}KW
												</c:when>
												<c:otherwise>
													自装空调
												</c:otherwise>
											</c:choose>
										</td>
								  	</tr>
								  	<tr>
								  		<td class="text-right" style="width: 15%"><strong>排水管径:</strong></td>
								  		<td>DN${brandCate.brandDemand.drainagePipe}</td>
								  		<td class="text-right" style="width: 15%"><strong>排风管径:</strong></td>
								  		<td>${brandCate.brandDemand.exhaustAirPipe}MM</td>
								  		<td class="text-right" style="width: 15%"><strong>隔油池:</strong></td>
								  		<td>
										 	<c:choose>
												<c:when test="${ brandCate.brandDemand.oilStType==1}">
													独立隔油池${brandCate.brandDemand.oilSeparatingTank}m³
												</c:when>
												<c:otherwise>
													公用隔油池
												</c:otherwise>
											</c:choose>
										</td>
								  	</tr>
								  	<tr>
								  		<td class="text-right" style="width: 15%"><strong>排污管径:</strong></td>
								  		<td>DN${brandCate.brandDemand.sewagePipe}</td>
								  		<td class="text-right" style="width: 15%"><strong>排烟管径:</strong></td>
								  		<td colspan="3">${brandCate.brandDemand.smokePipe}MM</td>
								  	</tr>
								  	<tr>
								  		<td class="text-right" style="width: 15%"><strong>其它:</strong></td>
								  		<td colspan="5">${brandCate.brandDemand.other}</td>
								  	</tr>
								  </tbody>
								 </table>
							 </div>
						</div> 
						 <div class="tab-pane" id="att_tab">
				 <div class="Report_f_title_4"> 
					<table class="table table-bordered">
						<tbody>
							<tr>
								<td class="text-right" style="width: 20%"><strong>品牌Logo:</strong></td>
								<td>
									<att:down key="brandLogo" soureBillID="${brandCate.viceId}" modleName="com.maoye.ossp.biz.brand.entity.BrandCate"></att:down>
								</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>商标注册证电子版:</strong></td>
								<td>
									<att:down key="brandRegister" soureBillID="${brandCate.viceId}" modleName="com.maoye.ossp.biz.brand.entity.BrandCate"></att:down>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				</div>
				<div class="tab-pane" id="workflow"> 
					<c:import url="/WEB-INF/views/bpm/workflow/workFlowInfo_view.jsp">
						<c:param name="formName" value="com.maoye.ossp.biz.brand.entity.BrandCate" />
						<c:param name="flowKey" value="IBrand" />
						<c:param name="businessId" value="${brandCate.id}"/>
						<c:param name="method" value="${method}"/>
						<c:param name="isStart" value="${isStart}"/>
					</c:import> 	
				</div>
				<div class="tab-pane" id="diagram" style="overflow-x:auto;">
					<iframe id="diagram_iframe" scrolling="no" frameborder=0 width="100%">
					</iframe>
				</div>
                    </div>
              </div>
         </div>
    </div>
</div>                            
<script type="text/javascript" src="${staticPath}/js/brand.js"></script>
</body>
</html>